package com.fh.mapper;

import com.fh.model.TCar;
import com.fh.pojo.CarDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TCarMapper {
    int deleteByPrimaryKey(Long tcId);

    int insert(TCar record);

    int insertSelective(TCar record);

    TCar selectByPrimaryKey(Long tcId);

    int updateByPrimaryKeySelective(TCar record);

    int updateByPrimaryKey(TCar record);


    List<CarDTO> queryCarListByUerId(Long userId);

    void updateCar(CarDTO cars);

    void deleteCarByPidAndUser(Map map);


}